<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务器错误 - 校园二手书交易平台</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
    <style>
        .error-template {
            padding: 40px 15px;
            text-align: center;
        }
        .error-actions {
            margin-top: 15px;
            margin-bottom: 15px;
        }
        .error-actions .btn {
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="error-template">
                    <h1>
                        <i class="fas fa-exclamation-circle text-danger"></i> 500 - 服务器错误
                    </h1>
                    <h2>抱歉，服务器出现了一些问题！</h2>
                    <div class="error-details">
                        <p th:text="${error}">错误详情</p>
                        <p>请求的URL: <span th:text="${url}">URL</span></p>
                    </div>
                    <div class="error-actions">
                        <a th:href="@{/}" class="btn btn-primary">
                            <i class="fas fa-home"></i> 返回首页
                        </a>
                        <a href="javascript:history.back()" class="btn btn-secondary">
                            <i class="fas fa-arrow-left"></i> 返回上一页
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 